package com.yn.pet.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 设备告警配置表(AlarmConfig)表实体类
 *
 * @author makejava
 * @since 2025-07-09 12:00:46
 */
@Data
@TableName("t_alarm_config")
@EqualsAndHashCode(callSuper = true)
public class AlarmConfig extends Model<AlarmConfig> {
    //主键ID
    private Long configId;
    //设备ID
    private Long deviceId;
    //告警项编码
    private String alarmCode;
    //告警项开关
    private Integer alarmSwitch;
    //告警项值
    private String alarmValue;
    //推送方式
    private String pushMethod;
    //告警频次（发生即告警，根据上传频次告警）
    private String alarmFrequency;
    //创建时间
    private Date createTime;
    //更新时间
    private Date updateTime;

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    public Serializable pkVal() {
        return this.configId;
    }
}

